package com.etc.entity;

import java.io.Serializable;
import java.util.Date;

public class Travels implements Serializable {

    private static final long serialVersionUID = -4192763578391507213L;
    private Integer traId;

    private String traTitle;

    private String traContent;

    private String traPicpath;

    private String traViopath;

    private Date traDate;

    private Integer userId;

    public Travels(String traTitle, String traContent, String traPicpath, Date traDate, Integer userId) {
        this.traTitle = traTitle;
        this.traContent = traContent;
        this.traPicpath = traPicpath;
        this.traDate = traDate;
        this.userId = userId;
    }

    public Travels() {
        super();
	}

    public Travels(Integer traId, String traTitle, String traContent, String traPicpath, String traViopath, Date traDate, Integer userId) {
        this.traId = traId;
        this.traTitle = traTitle;
        this.traContent = traContent;
        this.traPicpath = traPicpath;
        this.traViopath = traViopath;
        this.traDate = traDate;
        this.userId = userId;
    }

    public Integer getTraId() {
        return traId;
    }

    public void setTraId(Integer traId) {
        this.traId = traId;
    }

    public String getTraTitle() {
        return traTitle;
    }

    public void setTraTitle(String traTitle) {
        this.traTitle = traTitle;
    }

    public String getTraContent() {
        return traContent;
    }

    public void setTraContent(String traContent) {
        this.traContent = traContent;
    }

    public String getTraPicpath() {
        return traPicpath;
    }

    public void setTraPicpath(String traPicpath) {
        this.traPicpath = traPicpath;
    }

    public String getTraViopath() {
        return traViopath;
    }

    public void setTraViopath(String traViopath) {
        this.traViopath = traViopath;
    }

    public Date getTraDate() {
        return traDate;
    }

    public void setTraDate(Date traDate) {
        this.traDate = traDate;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    @Override
    public String toString() {
        return "Travels{" +
                "traId=" + traId +
                ", traTitle='" + traTitle + '\'' +
                ", traContent='" + traContent + '\'' +
                ", traPicpath='" + traPicpath + '\'' +
                ", traViopath='" + traViopath + '\'' +
                ", traDate=" + traDate +
                ", userId=" + userId +
                '}';
    }
}